package io.jpress.addon.interact.controller;

import com.jfinal.aop.Inject;
import io.jboot.web.controller.annotation.RequestMapping;
import io.jpress.addon.interact.service.JpressAddonInteractService;
import io.jpress.model.User;
import io.jpress.web.base.TemplateControllerBase;

/**
 * 互动交流页入口
 */
@RequestMapping(value = "/interactList")
public class InteractListController extends TemplateControllerBase {

    @Inject
    private JpressAddonInteractService service;

    public void index() {
        User loginedUser = getLoginedUser();
        if(loginedUser!=null){
            render("interact_list.html");
        }else{
            redirect("/user/login");
        }

    }

}
